package controller;

import domanin.Student;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller
@RequestMapping("/Controller")
public class StrdentController {

    @RequestMapping("/demo01")
    //测试
    public String demo01(){
        System.out.println("测试01running......");
        return "success";
    }

    @RequestMapping("/demo02")
    //传输学生信息
    public String demo02(Student student){
        System.out.println(student);

        return "success";
    }
}
